import os

# 先初始化 Django 配置
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'boss_backend.settings')
import django
django.setup()

from violation.models import Violation
# 添加3个违规词
Violation.objects.create(word="刷单", word_type=1)
Violation.objects.create(word="扫码进群", word_type=5)
Violation.objects.create(word="制售毒品", word_type=4)

print("添加违规词成功！")